package com.master.mapper.modelMapper;

import com.master.constant.model.CsHouseholder;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * HouseholderDao继承基类
 */
@Repository
public interface CsHouseholderDao extends MyBatisBaseDao<CsHouseholder, Long> {

    /**
     * @Description: 按条件获取住户信息
     * @Parameter: [params]
     * @Return: java.util.List<java.util.Map<java.lang.String,java.lang.Object>>
     * @author: Heath.Que
     * @Date: 2021/5/26
     **/
    List<Map<String, Object>> getHouseholderByCondition(Map<String, Object> condition);

    /**
     * @Description: 按条件获取住户信息
     * @Parameter: [params]
     * @Return: java.util.List<java.util.Map<java.lang.String,java.lang.Object>>
     * @author: Heath.Que
     * @Date: 2021/5/26
     **/
    List<Map<String, Object>> addHouseholdersByHouseId(@Param("houseId") Long houseId, @Param("csHouseholders") List<CsHouseholder> csHouseholder);



}